upstream backend {
    server flask:8000;    
}

server {
    listen 443 ssl;
    server_name localhost;

    resolver 127.0.0.11 valid=5s ipv6=off;
    
    include /etc/nginx/mime.types;

    ssl_certificate /app/nginx-selfsigned.crt;
    ssl_certificate_key /app/nginx-selfsigned.key;

    location / {
        proxy_pass http://backend/;
    }
}